﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewTempletManage.aspx.cs" Inherits="sysadmin_NewManager_NewTempletManage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新闻模板管理</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server" class="bodymain">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="titbg_right">
            <tr>
                <td class="titbg_left">
                    新闻模板管理
                </td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="btnbg" width="100%">
            <tr>
               
                <td>
                    <asp:TextBox ID="txtNewTempletName" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="inputBotton2" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
        <asp:Repeater ID="rptNew" runat="server" OnItemCommand="rptNew_ItemCommand" OnItemDataBound="rpt_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <%--<th style="width: 20px">
                            &nbsp;
                        </th>--%>
                        <th>模板名称</th>
                        <th>上传时间</th>
                        <th>操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <%--<td  style="width:20px">
                        
                    </td>--%>
                    <td>
                    <asp:CheckBox runat="server" ID="Chbox_Check" />
                        <asp:Label ID="lab_NewID" runat="server" Text='<%#Eval("ID")%>' Visible="False"></asp:Label>
                        <%#Eval("Name")%>
                    </td>
                    <td>
                        <%#Eval("CreateTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkbtn_editor" runat="server" CommandName="leditor" CommandArgument='<%#Eval("ID")%>'>编辑</asp:LinkButton>|
                        <asp:LinkButton ID="lnkbtn_Islook" runat="server" CommandName="islook" CommandArgument='<%#Eval("Url")%>'>预览</asp:LinkButton>|
                        <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("ID")%>'>删除</asp:LinkButton>&nbsp;
                        <asp:Label ID="lbl_msg" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 12px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
